FROM node:9

COPY eth-netstats/ /eth-netstats
RUN npm install -g cnpm --registry=https://registry.npm.taobao.org

WORKDIR /eth-netstats

RUN cnpm install && \
    cnpm install -g grunt-cli && \
    grunt

EXPOSE 3000

CMD ["npm", "start"]
